/**
 * Created by licco on 2017/3/11.
 */
$(() => {
  $("#makeBtn").click(function (e) {
    let url = $(this).data("action");
    $("input[type='checkbox']:checked").each(function () {
      $.post(url, {
        name: $(this).data("name"),
        href: $(this).data("url"),
        search: $("#search_input").val()
      }, function (r) {
        if (r) {
          alert("定制成功~");
        }
      });

    });
  });

});
